<template>
  <admin-layout class="ArticleShow">
    <h1>ArticleShow</h1>
    <h1>{{ $route.params }}</h1>
    <div v-html="item.detail"></div>
  </admin-layout>
</template>

<script>
import { mapActions, mapState } from 'vuex'

export default {
  name: "ArticleShow",
  computed: {
    ...mapState('article', ['item'])
  },
  created() {
    const { id } = this.$route.params
    this.getItem(id)
  },
  methods: {
    ...mapActions('article', ['getItem'])
  }
};
</script>

<style scoped>

</style>